package com.atguigu.yygh.hosp.service;

import com.atguigu.yygh.model.hosp.Department;
import com.atguigu.yygh.vo.hosp.DepartmentQueryVo;
import com.atguigu.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @version 1.0
 * @Author lj
 * @Date 2025/5/6
 * @注释
 */
public interface DepartmentService {
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);

    void save(Department department);

    Page<Department> findAll(Integer pageNum, Integer pageSize, DepartmentQueryVo departmentVo);

    void removeDepartmentByHoscodeAndDepcode(String hoscode, String depcode);

    List<DepartmentVo> findDeptTree(String hoscode);

    String getDepName(String hoscode, String depcode);
}
